package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.User;

import java.util.List;

public interface IUserService {
    User getUserById(Integer id);
    int addUser(User user);
    int updateUser(User user);
    int deleteUser(Integer id);
    List<User> getAll(User user);
    IPage<User> getPage(User user,IPage page);
    // 添加司机审批相关方法
    List<User> getDriverApplications(Integer status);
    int approveDriverApplication(Integer id);
    int rejectDriverApplication(Integer id); // 添加拒绝方法

    User getByUsername(String username);
    User getByEmail(String email);
    boolean resetPasswordByEmail(String email, String newPassword);
    boolean resetPassword(String username, String oldPassword, String newPassword);
}
